package com.huike.web.controller.report;

import com.huike.common.core.domain.AjaxResult;
import com.huike.report.service.IReportService;
import com.huike.report.service.impl.ReportServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.huike.common.core.controller.BaseController;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;


@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {
    ///report/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}
    @Autowired
    IReportService reportService;

    // GetMapping("/beginCreateTime/endCreateTime")
    @GetMapping("/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}")
    public AjaxResult getVulnerabilityMap(@PathVariable String beginCreateTime, @PathVariable String endCreateTime) {


        /*
        	cluesNums   			     线索数
			effectiveCluesNums	        有效线索数
			businessNums		        商机数
			contractNums		        合同数
         */


        HashMap<String, Integer> data = reportService.getData();

        return AjaxResult.success(data);


    }

}